<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.wxtf.platform.plugins.user.*"%>

<%
	String name = request.getParameter("name");
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	UserBean user = (UserBean) request.getSession().getAttribute(
			"userBean");

	String _db = user.getDbType();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<link type="text/css" rel="stylesheet"
			href="ligerUI/skins/Aqua/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet"
			href="ligerUI/skins/<%=user.getUserCss()%>/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet"
			href="ligerUI/skins/ligerui-icons.css" />
		<link type="text/css" rel="stylesheet" href="resource/css/style.css" />

		<script type="text/javascript" src="js/jquery/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="ligerUI/js/core/base.js"></script>
		<script type="text/javascript" src="ligerUI/js/ligerui.min.js"></script>
		<script type="text/javascript" src="js/common.js"></script>
		<script type="text/javascript" src="js/validata.js"></script>

		<script type="text/javascript" src="ligerUI/js/plugins/ligerGrid.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerTree.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerForm.js"></script>
		<script type="text/javascript"
			src="ligerUI/js/plugins/ligerDateEditor.js"></script>

		<script type="text/javascript">
var _db = '<%=_db%>';

_jsonObj.classname = "com.wxtf.platform.main.sygl.credentials_recordAction";
_jsonObj.methodname = "";
_jsonObj.logicdata = "[]";

var win;//修改弹出框
var win2;//选人弹出框

var manager;//人员表格

$(function(){
	manager = $("#emp-grid").ligerGrid({
		 url: _url, parms: _jsonObj,width: '100%',height:'100%',heightDiff:-30,
		usePager: true, rownumbers: true, checkbox: true, alternatingRow: true,onAfterShowData: function(data, currentPageData)
		 {
		 	//allProps(data);
		 	 $("#child").val(data.child);
		     $("#emp").val(data.emp);
		     $("#credentied").val(data.credentied);
		     $("#credentials").val(data.credentials);
		 },
		columns: [
			{ display: 'tbeocr_id', name: 'tbeocr_id', hide: true,width:1},
			{ display: 'tbfi_id', name: 'tbfi_id', hide: true,width:1 },
			{ display: 'org_id', name: 'org_id', hide: true,width:1 },
			{ display: '办证时间', name: 'tbeocr_time',width: 100, align: 'left'},
			{ display: '状态', name: 'reserve2', width: 100, align: 'left',
					render: function (row)
	                {
	                   var html = '';
	                   if(row.reserve2!=''){
	                   		html = '证件已注销';
	                   }else{
                   			var birthday=(parseInt(row.tbeocr_child_birthday.substring(0,4))+18).toString()+row.tbeocr_child_birthday.substring(4);
	                  		var d = new Date();
							var vYear = d.getFullYear();
							var vMon = d.getMonth() + 1;
							var vDay = d.getDate();
                   			var res = compareDate(vYear+"-"+vMon+"-"+vDay,birthday);
							if(null == res || res > 0){
								html = '已满18岁';
							}
	                   }
	                   return html;
	                }
				},
            {display: '机构名称', name: 'reserve1', width: 110, align: 'left'},
			{ display: '员工姓名', name: 'tbeocr_father_name', width: 100, align: 'left',render: function(record, index, value, oth){
					return " <a href='javascript:addData(" + JSON.stringify(record) + ")'>"+value+"</a>";
				}
			},
			{ display: '父亲身份证号', name: 'tbeocr_father_idcard', hide: true,width:1 },
			{ display: '父亲工作单位', name: 'tbeocr_father_department', hide: true,width:1 },
			{ display: 'trpocfm_father_age', name: 'trpocfm_father_age', hide: true,width:1 },
			{ display: 'trpocfm_father_seniority', name: 'trpocfm_father_seniority', hide: true,width:1 },
			{ display: '配偶姓名', name: 'tbeocr_mother_name', width: 100, align: 'left' },
			{ display: '母亲身份证号', name: 'tbeocr_mother_idcard', hide: true,width:1 },
			{ display: '母亲工作单位', name: 'tbeocr_mother_department', hide: true,width:1 },
			{ display: 'trpocfm_mother_age', name: 'trpocfm_mother_age', hide: true,width:1 },
			{ display: 'trpocfm_mother_seniority', name: 'trpocfm_mother_seniority', hide: true,width:1 },
			{ display: '家庭住址', name: 'tbeocr_family_address', hide: true,width:1 },
			{ display: '独生子女姓名', name: 'tbeocr_child_name', width: 120, align: 'left' },
			{ display: '独生子女性别', name: 'tbeocr_child_sex', width: 100, align: 'left',
				render: function (row)
                {
                   var html = '';
                   if(row.tbeocr_child_sex=='0'){
                   		html = '男';
                   }else if(row.tbeocr_child_sex=='1'){
                   		html = '女';
                   }
                   return html;
                }
			},
			{ display: 'tbfi_children_mnum', name: 'tbfi_children_mnum',width: 1, hide:true},
			{ display: 'tbfi_children_fnum', name: 'tbfi_children_fnum',width: 1, hide:true},
			{ display: '独生子女年龄', name: 'tbeocr_child_age',width:  1, hide:true },
			{ display: '独生子女出生日期', name: 'tbeocr_child_birthday', width: 130, align: 'left'},
			{ display: '独生子女身份证号', name: 'tbeocr_child_idcard', width:1, hide:true },
			{ display: '证件编号', name: 'tbeocr_code',width: 1, hide:true},
			{ display: '奖励发放时间', name: 'tbeocr_give_time',width: 1, hide:true},
			{ display: '费用核算参数', name: 'tbeocr_fee_param', width: 100, align: 'left',
				render: function (row)
                    {
                       var html = ' ';
                       if(row.tbeocr_fee_param=='0'){
                       		html = '五元';
                       }else if(row.tbeocr_fee_param=='1'){
                       		html = '十元';
                       }
                       else if(row.tbeocr_fee_param=='2'){
                       		html = '无';
                       }
                       return html;
                    }
			 },
			
			{ display: '备注', name: 'tbeocr_memo', width:  1, hide:true },
			
			{ display: 'reserve3', name: 'reserve3', width:  1, hide:true },
			{ display: 'reserve4', name: 'reserve4', width:  1, hide:true },
			{ display: 'reserve5', name: 'reserve5', width:  1, hide:true },
			{ display: '录入人', name: 'create_by', width:  1, hide:true },
			{ display: '录入时间', name: 'create_time', width:  1, hide:true },
			{ display: '最后修改人', name: 'last_modify_by', width:  1, hide:true },
			{ display: '最后修改时间', name: 'last_modify_time', width: 1, hide:true },
			{ display: '编辑', name:'edit',isSort:false,width:60,render: function(record, index, value, oth){
					if(record.reserve2 == ''){
				        return "<img src='ligerUI/skins/icons/edit.gif' onclick='addData(" + JSON.stringify(record) + ")'></img>";
					}else{
						return "<img src='ligerUI/skins/icons/search.gif' onclick='addData(" + JSON.stringify(record) + ")'></img>";
					}
				}
			}
		],
		toolbar: {
			items: [
				{ text: '退证', click: function(){ delData(); },icon: 'busy'},
				{ line: true },
				{ text: '删除', click: function(){ delData(1); },icon: 'delete'}
			]
		}
		
	});

	
	/*
	 * 日期框
	 */
	$("#tbeocr_child_birthday").ligerDateEditor({ format: "yyyy-MM-dd", width:182 });
	$("#tbeocr_time").ligerDateEditor({ format: "yyyy-MM-dd", width:182});
	$("#tbeocr_give_time").ligerDateEditor({ format: "yyyy-MM-dd", width:182});
	$("#ser4").ligerDateEditor({ format: "yyyy-MM-dd", width:164});
	$("#ser5").ligerDateEditor({ format: "yyyy-MM-dd", width:164});

	<%
	if(name != null){
	%>
		$('#ser1').val('<%=java.net.URLDecoder.decode(name, "UTF-8")%>');
		serch1();
	<%
	}
	%>
	
});


/*
 * 表格刷新
 */
function reload(){
	_jsonObj.methodname = "queryPage";
	_jsonObj.logicdata = "[{\"types\":\"init\"}]";
	manager.loadData();
}

/*
 * ajax成功回调
 */
function ajaxCallbackSuccFunc(data, textStatus){
	serch1();
	if(data.result || data.result == 'true'){
		succMsgTip(data.resultrecord);
	}else{
		warningTip(data.resultrecord);
	}
	if(win && data.result){
		win.hide();
	}
}

/*
 * ajax失败回调
 */
function ajaxCallbackErrorFunc(data, textStatus){
	warningTip(data.resultrecord);
}

/*
 * 获取列表选中的人员ID
 */
function getUserIds(){
	var arrayUsers = manager.getSelecteds();
	if(arrayUsers.length == 0){
		return "";
	} else {
		var text = "";
		for(var i=0; i<arrayUsers.length; i++){
			text += arrayUsers[i].tbeocr_id + ":tbeocr_id" + ",";
			text += arrayUsers[i].tbfi_id + ":tbfi_id" + ",";
		}
		return text.substring(0, text.length - 1);
	}
}

/*
 * 新增/修改人员
 */
function addData(row){
	document.getElementById('emp-form').reset();
	
	if(row){
		loadForm("emp-form", row);
		$("#org_id").attr("disabled", true);
		var tbeocr_id = $("#tbeocr_id").val();
		if(tbeocr_id == ''){
		$("#tbeocr_time").ligerGetDateEditorManager().setEnabled();
		}else{$("#tbeocr_time").ligerGetDateEditorManager().setDisabled();}
	} else {
		$("#tbeocr_id").val('');
	}
	//设置子女性别
	if($("#tbfi_children_mnum").val()=="1")
	{
		//男孩
		$("input[name='tbeocr_child_sex'][value='0']").attr("checked", true);
	}
	if($("#tbfi_children_fnum").val()=="1")
	{
		//女孩
		$("input[name='tbeocr_child_sex'][value='1']").attr("checked", true);
	}
	var reserve2 = $("#reserve2").val()
	if(reserve2 !="")
	{
		//设置不可用
		if(win2 == null){
			win2 = initWindowByDiv2('empAdd-div', '编辑信息', 600, 360 ,closeWin);
		}else{
			win2 = initWindowByDiv2('empAdd-div', '编辑信息', 600, 360 ,closeWin);
		}
	}
	else
	{
	
     	win = initWindowByDiv('empAdd-div', '编辑信息', 600, 360,save,closeWin);
	}

}

/*
 * 新建/修改人员信息
 */
function save(){
	$("#org_id").attr("disabled", false);
	var tbeocr_child_name = $("#tbeocr_child_name").val().trim();
	var tbeocr_child_idcard = $("#tbeocr_child_idcard").val().trim();
	var tbeocr_code = $("#tbeocr_code").val();
	var time = $("#tbeocr_time").val();
	var birthday = $("#tbeocr_child_birthday").val();
	var tbeocr_memo = $("#tbeocr_memo").val().trim();
	if(!checkIsString(tbeocr_child_name)){
		warningTip("姓名：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbeocr_child_name) > 32){
		warningTip("姓名：不能超过32字符");
		return;
	}
	
	if(!checkIsString(tbeocr_child_idcard)){
		warningTip("身份证：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbeocr_child_idcard) > 32){
		warningTip("身份证：不能超过32字符");
		return;
	}
	if(!checkIsString(tbeocr_code)){
		warningTip("证件编号：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbeocr_code) > 32){
		warningTip("证件编号：不能超过32字符");
		return;
	}
	if(birthday == ""){
		warningTip('请填写出生日期');
		return;
	}
	if(time == ""){
		warningTip('请填写办证时间');
		return;
	}
	if(!checkIsString(tbeocr_memo)){
		warningTip("备注：必须为字母、数字、下划线、中文组成");
		return;
	}
	if(fucCheckLength(tbeocr_memo) > 512){
		warningTip("备注：不能超过512字符");
		return;
	}
	var text = document.getElementById('org_id');
	text = text.options[text.selectedIndex].text.replaceAll('-','');
	$('#reserve1').val(text);
	_jsonObj.logicdata = getForm("emp-form");
	var tbeocr_id = $("#tbeocr_id").val();
	if(tbeocr_id == ''){
		_jsonObj.methodname = "save";
		callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
	} else {
		_jsonObj.methodname = "update";
		callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
	}
}

/*
 * 删除人员
 */
function delData(str){
	var userIds = getUserIds();
	if(userIds == ""){
		warningTip('请至少选择一个用户进行操作');
		return;
	}
	if(str)
	{
		$.ligerDialog.confirm('确定要删除选中的数据吗？（删除之后数据将不可再恢复）', function (opt) { 			
			if(opt){
				_jsonObj.methodname = "delete";
				_jsonObj.logicdata = "[{\"ids\":\"" + userIds + "\"}]";
				callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
			}
		});
	}else
	{
		$.ligerDialog.confirm('确定要注销选中的数据吗？（注销之后不可恢复）', function (opt) { 			
			if(opt){
				_jsonObj.methodname = "cancel";
				_jsonObj.logicdata = "[{\"ids\":\"" + userIds + "\"}]";
				callserver(_jsonObj, ajaxCallbackSuccFunc, ajaxCallbackErrorFunc);
			}
		});
	}
}

/*
 * 重置-条件查询
 */
function serReset(){
	$('#ser2').val('');
	$('#ser3').val('');
	$('#ser1').val('');
}

/*
 * 条件查询
 */
function serch1(){
	var orgIds = $('#org2').val();

	var tbe_work_permit = $('#ser3').val();
	var tbe_name = $('#ser1').val();
	var mother = $('#ser2').val();
	var time1 = $('#ser4').val();
	var time2 = $('#ser5').val();
	
	_jsonObj.methodname = "queryPage";
	_jsonObj.logicdata = '[{\"orgIds\":\"' + orgIds	+ '\",\"tbe_work_permit\":\"' + tbe_work_permit + '\",\"tbe_name\":\"' + tbe_name
			+ '\",\"time1\":\"' + time1 + '\",\"time2\":\"' + time2+ '\",\"mother\":\"' + mother+ '\",\"types\":\"serch1\"}]';
	manager.loadData();
}

/*
 * 条件导出查询
 */
function expData(){
	var orgIds = $('#org2').val();

	var tbe_work_permit = $('#ser3').val();
	var tbe_name = $('#ser1').val();
	var mother = $('#ser2').val();
	var time1 = $('#ser4').val();
	var time2 = $('#ser5').val();
	
	_jsonObj.methodname = "expData";
	_jsonObj.logicdata = '[{\"orgIds\":\"' + orgIds	+ '\",\"tbe_work_permit\":\"' + tbe_work_permit + '\",\"tbe_name\":\"' + tbe_name
			+ '\",\"time1\":\"' + time1 + '\",\"time2\":\"' + time2+ '\",\"mother\":\"' + mother+ '\",\"types\":\"serch1\"}]';
			
	callserver(_jsonObj, function(data, textStatus){
		if(data.result){
			downloadFile(data.resultrecord);
		} else {
			warningTip(data.resultrecord);
		}
	}, function(data, textStatus){
	});
}

/*
 * 时间验证
 */
function joinTime(ele){
	var tbe_work_area = $('#tbeocr_child_birthday').val();
	var tbe_join_time = $('#tbeocr_time').val();
	if('' != tbe_work_area && '' != tbe_join_time){
		var res = compareDate(tbe_work_area, tbe_join_time);
		if(null == res || res > 0){
			ele.value = '';
			warningTip('办证时间应大于等于出生日期');
			return;
		}
	}
}


/*
*计算年龄
*/
function mathYear(){
  var tbe_work_area = $('#tbeocr_child_birthday').val();
  var pYear="";
  var d = new Date();
  var vYear = d.getFullYear();
  var vMon = d.getMonth() + 1;
  var vDay = d.getDate()
  var wYear= tbe_work_area.substring(0,4);
  var wMon=tbe_work_area.substring(5,7);
  var wDay=tbe_work_area.substring(8,10);
  if(wYear<vYear){
     if(wMon<=vMon){
       if(wDay<=vDay){
          pYear=vYear-wYear;
          }else{
           pYear=vYear-wYear-1;
         }
       }else{
       pYear=vYear-wYear-1;
     }
  }else if(wDay=vYear){
    pYear=0;
   }else{
     warningTip('出生时间有误');
     return;
  }
  $("#tbeocr_child_age").val(pYear);
}
</script>
		<script type="text/javascript">
   var tab = null;
   $(function ()
   {
       //布局
       $("#laycre1").ligerLayout({Width:'100%', height: '100%',heightDiff:0,space:4, onHeightChanged: f_heightChanged});
       var height = $(".l-layout-center").height();

       //Tab
       $("#framecenter1").ligerTab({ height: height });
       tab = $("#framecenter1").ligerGetTabManager();

   });
   function f_heightChanged(options)
   {
       if (tab)
           tab.addHeight(options.diff);
   }
 $(function ()
 {
 	var bool='0';
     $("#framecenter1").ligerTab({ onBeforeSelectTabItem: function (tabid)
     {
	 	if(bool=='0')
	 	{
	 		//alert('onBeforeSelectTabItem: ' + tabid);
	      	var str="jsp/sygl/faa_birth_record.jsp";
	        document.getElementById('homes').src=str;
	        bool="1"
        }
     }});
 });
</script>
	</head>
	<body>
		<div id="laycre1">
			<div position="center" id="framecenter1">
				<div tabid="home1" title="独生子女光荣证登记">
					<table id="aaa" class="serTable">
						<tr>
							<td>
								机构：
							</td>
							<td>
								<select id="org2" style="width: 164px;">
									<%=user.getCurSubOrgOptions()%>
								</select>
							</td>
							<td>
								员工姓名：
							</td>
							<td>
								<input id="ser1" style="width: 160px;" />
							</td>
							<td>
								配偶姓名：
							</td>
							<td>
								<input id="ser2" style="width: 160px;" />
							</td>
							<td>
								<input class="btn2" value="搜索" type="button" onclick="serch1();" />
							</td>
						</tr>
						<tr>
							<td>
								核算标准：
							</td>
							<td>
								<select id="ser3" style="width: 164px;">
									<option value="3">
										全部
									</option>
									<option value="0">
										五元
									</option>
									<option value="1">
										十元
									</option>
									<option value="2">
										无
									</option>
								</select>
							</td>
							<td>
								办证时间：
							</td>
							<td>
								<input id="ser4" onkeyup="this.value=formatdata(this.value);" />
							</td>
							<td>
								---
							</td>
							<td>
								<input id="ser5" onkeyup="this.value=formatdata(this.value);" />
							</td>
							<td>
								<input class="btn2" value="导出" type="button"
									onclick="expData();" />
							</td>
						</tr>
					</table>

					<div id="emp-grid"></div>
					<div style="font-size: 15px; text-align: left; margin-top: 5px;">
						注:现有独生子女数
						<input type="text" id="child"
							style="border: 0; width: 60px; border-bottom: 1px solid #000; text-align: center;" />
						人, 应办证职工
						<input type="text" id="emp"
							style="border: 0; width: 60px; border-bottom: 1px solid #000; text-align: center;" />
						人, 已办证
						<input type="text" id="credentied"
							style="border: 0; width: 60px; border-bottom: 1px solid #000; text-align: center;" />
						人, 未办证
						<input type="text" id="credentials"
							style="border: 0; width: 60px; border-bottom: 1px solid #000; text-align: center;" />
						人。
					</div>
				</div>
				<div tabid="home" title="生育/再生育证明登记" style="height: 300px">
					<iframe frameborder="0" name="homes" id="homes"></iframe>
				</div>
			</div>
			<div id="empAdd-div" style="display: none;">
				<form id="emp-form" name="emp-form">
					<input type="hidden" id="trpocfm_father_age"
						name="trpocfm_father_age" value="" />
					<input type="hidden" id="trpocfm_father_seniority"
						name="trpocfm_father_seniority" value="" />
					<input type="hidden" id="trpocfm_mother_age"
						name="trpocfm_mother_age" value="" />
					<input type="hidden" id="trpocfm_mother_seniority"
						name="trpocfm_mother_seniority" value="" />
					<input type="hidden" id="tbeocr_id" name="tbeocr_id" value="" />
					<input type="hidden" id="tbfi_id" name="tbfi_id" value="" />
					<input type="hidden" id="reserve1" name="reserve1" value="" />
					<input type="hidden" id="reserve2" name="reserve2" value="" />
					<input type="hidden" id="reserve3" name="reserve3" value="" />
					<input type="hidden" id="reserve4" name="reserve4" value="" />
					<input type="hidden" id="reserve5" name="reserve5" value="" />
					<input type="hidden" id="create_by" name="create_by" value="" />
					<input type="hidden" id="create_time" name="create_time" value="" />
					<input type="hidden" id="last_modify_by" name="last_modify_by"
						value="" />
					<input type="hidden" id="last_modify_time" name="last_modify_time"
						value="" />

					<table class="form_table">
						<tr>
							<td colspan="9" align="left">
								<div
									style="border-bottom: 1px solid #EBEBEB; font-weight: bold; height: 28px; line-height: 28px; margin: 0 0 5px;">
									<img src="ligerUI/skins/icons/communication.gif" />
									<span>基础信息</span>
								</div>
							</td>
						</tr>
						<tr>
							<td class="form_label">
								机构：
							</td>
							<td>
								<select id="org_id" name="org_id" style="width: 182px;">
									<%=user.getCurSubOrgOptions()%>
								</select>
							</td>
							<td>
								<font color="red">*</font>
							</td>
							<td class="form_label">
								员工姓名：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_father_name"
									name="tbeocr_father_name" readonly="readonly"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
						</tr>
						<tr>
							<td class="form_label">
								员工身份证：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_father_idcard"
									name="tbeocr_father_idcard" readonly="readonly"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
							<td class="form_label">
								配偶姓名：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_mother_name"
									name="tbeocr_mother_name" readonly="readonly"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
						</tr>
						<tr>
							<td class="form_label">
								配偶身份证：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_mother_idcard"
									name="tbeocr_mother_idcard" readonly="readonly"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
							<td class="form_label">
								家庭住址：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_family_address"
									name="tbeocr_family_address" readonly="readonly"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
						</tr>
						<tr style="display: none;">
							<td class="form_label">
								配偶工作单位：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_mother_department"
									name="tbeocr_mother_department" readonly="readonly"
									validate="{maxlength:150}"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
							<td class="form_label">
								配偶工作单位
							</td>
							<td>
								<input class="textbg1" id="tbeocr_father_department"
									name="tbeocr_father_department" readonly="readonly"
									validate="{maxlength:150}"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
							<td class="form_label">
								发放时间：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_give_time"
									name="tbeocr_give_time"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
						</tr>
						<tr>
							<td colspan="9" align="left">
								<div
									style="border-bottom: 1px solid #EBEBEB; font-weight: bold; height: 28px; line-height: 28px; margin: 0 0 5px;">
									<img src="ligerUI/skins/icons/communication.gif" />
									<span>独生子女信息</span>
								</div>
							</td>
						</tr>
						<tr>
							<td class="form_label">
								子女姓名：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_child_name"
									name="tbeocr_child_name"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
							<td class="form_label">
								子女性别：
							</td>
							<td align="left" id="tbeocr_child_sex">
								<input style="margin-top: 2px;" type="radio"
									name="tbeocr_child_sex" value="0" checked="checked" />
								男
								<input style="margin-top: 2px;" type="radio"
									name="tbeocr_child_sex" value="1" />
								女
							</td>
							<td></td>
						</tr>
						<tr style="display: none;">
							<td class="form_label">
								tbfi_children_mnum：
							</td>
							<td>
								<input class="textbg1" id="tbfi_children_mnum"
									name="tbfi_children_mnum"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
							<td class="form_label">
								tbfi_children_fnum：
							</td>
							<td>
								<input class="textbg1" id="tbfi_children_fnum"
									name="tbfi_children_fnum"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
							<td class="form_label">
								子女年龄：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_child_age"
									name="tbeocr_child_age" value="0"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
						</tr>
						<tr>
							<td class="form_label">
								子女身份证：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_child_idcard"
									name="tbeocr_child_idcard"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
							<td class="form_label">
								出生日期：
							</td>
							<td>
								<input id="tbeocr_child_birthday" name="tbeocr_child_birthday"
									onblur="joinTime(this);mathYear();"
									onkeyup="this.value=formatdata(this.value);" />
							</td>
							<td>
								<font color="red">*</font>
							</td>
						</tr>
						<tr>

							<td class="form_label">
								证件编号：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_code" name="tbeocr_code"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
							<td class="form_label">
								办证时间：
							</td>
							<td>
								<input id="tbeocr_time" name="tbeocr_time"
									onblur="joinTime(this);"
									onkeyup="this.value=formatdata(this.value);" />
							</td>
							<td>
								<font color="red">*</font>
							</td>
						</tr>
						<tr>
							<td class="form_label">
								费用核算：
							</td>
							<td>
								<select id="tbeocr_fee_param" name="tbeocr_fee_param"
									style="width: 182px;">
									<option value="0">
										五元
									</option>
									<option value="1">
										十元
									</option>
									<option value="2">
										无
									</option>
								</select>
							</td>
							<td>
								<font color="red">*</font>
							</td>
							<td class="form_label">
								备注：
							</td>
							<td>
								<input class="textbg1" id="tbeocr_memo" name="tbeocr_memo"
									onMouseOver="this.style.borderColor='#4fa8e6'"
									onMouseOut="this.style.borderColor='#A1A3A1'" />
							</td>
							<td></td>
						</tr>
						<tr>
							<td>
								<br />
							</td>
						</tr>
					</table>
				</form>
			</div>

		</div>
	</body>
</html>